package com.lahiyam.study.mybatis.mapper;

import org.apache.ibatis.annotations.Select;

import com.lahiyam.study.mybatis.entity.Role;

/**
 * 角色Mapper接口
 *
 * @author U2R2otkit
 * @version 2018-11-03 12:22:00
 */
public interface RoleAnnoMapper extends RoleMapper
{
    /**
     * 查询权限
     * 
     * @param id
     * @return
     */
    @Select("select id,role_name as roleName,note from t_role where id = #{id}")
    public Role getRoleById(Long id);
    
}
